import service from '@/utils/request'

const baseUrl = "/sys/role";

export function getRoleApiUrl(){
    return {
        list:   baseUrl+'/page',	//分页查询API地址
        add:    baseUrl+'/add',		//添加API地址
        edit:   baseUrl+'/edit',	//修改API地址
        delete: baseUrl+'/delete',	//删除API地址
    };
}

export function getRoleMenu(roleId){
    return service.get(baseUrl+"/menus?id="+roleId)
}

export function getRoleListApi(){
    return service.get(baseUrl+"/list")
}